#!/bin/bash

if [ $# -ne 2 ]; then
  echo "Error: Missing argument"
  exit 1
fi

head -n$(($1*1024*1024/4)) $2 > $1-$2
